home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / go32 / makefile < prev    next >
Makefile  |  1994-07-18  |  3KB  |  161 lines

  1. # History:25,17
  2.  
  3. .SUFFIXES: .obj .c .asm
  4.  
  5. AFLAGS = /mx /zi /zd
  6. CFLAGS = -ms -A- -M -G- -O -Z -a -1 -f- -d -w -g12
  7.  
  8. CC=tcc
  9. ASM=tasm
  10.  
  11. .c.obj:
  12.     $(CC) $(CFLAGS) -DFOR_GO32=1 -c $*.c
  13.  
  14. .asm.obj:
  15.     $(ASM) $(AFLAGS) /DFOR_GO32=1 $*;
  16.  
  17. END =
  18.  
  19. GRDRIVER = vesadrv.vdr
  20.  
  21. OBJS =\
  22.     control.obj \
  23.     dalloc.obj \
  24.     doutils.obj \
  25.     dpmi.obj \
  26.     dpmisim.obj \
  27.     event.obj \
  28.     evintr.obj \
  29.     exphdlr.obj \
  30.     extdebug.obj \
  31.     glob.obj \
  32.     graphics.obj \
  33.     grprot.obj \
  34.     mono.obj \
  35.     mswitch.obj \
  36.     npx.obj \
  37.     paging.obj \
  38.     tables.obj \
  39.     ustat.obj \
  40.     utils.obj \
  41.     valloc.obj \
  42.     vga.obj \
  43.     xms.obj \
  44.     vcpi.obj \
  45.     driver.obj
  46.  
  47. all : \
  48.     go32t.exe \
  49.     stub.exe \
  50.     coff2exe.exe \
  51.     exe2coff.exe \
  52.     stubedit.exe \
  53.     $(END)
  54.  
  55. go32t.exe : $(OBJS) stamp.exe
  56.     $(CC) -ls $(CFLAGS) -ego32t.exe *.obj
  57.     stamp go32t.exe
  58.  
  59. stamp.exe : stamp.c
  60.     $(CC) stamp.c
  61.     @del stamp.obj
  62.  
  63. stub.exe: stub.c gotypes.h stubinfo.h fixstub.exe
  64.     $(CC) $(CFLAGS) stub.c
  65.     @del stub.obj
  66.     -tdstrip stub
  67.     fixstub
  68.  
  69. fixstub.exe : fixstub.c stubinfo.h gotypes.h
  70.     $(CC) $(CFLAGS) fixstub.c
  71.     @del fixstub.obj
  72.     -tdstrip fixstub
  73.  
  74. coff2exe.exe : coff2exe.c stubbyte.h
  75.     $(CC) $(CFLAGS) coff2exe.c
  76.     @del coff2exe.obj
  77.     -tdstrip coff2exe
  78.  
  79. stubbyte.h : bin2byte.exe stub.exe
  80.     bin2byte stub.exe stub_bytes stubbyte.h
  81.  
  82. bin2byte.exe : bin2byte.c
  83.     $(CC) bin2byte.c
  84.     @del bin2byte.obj
  85.     -tdstrip bin2byte
  86.  
  87. exe2coff.exe : exe2coff.c
  88.     $(CC) $(CFLAGS) exe2coff.c
  89.     @del exe2coff.obj
  90.     -tdstrip exe2coff
  91.  
  92. stubedit.exe : stubedit.c gotypes.h stubinfo.h
  93.     $(CC) $(CFLAGS) stubedit.c
  94.     @del stubedit.obj
  95.  
  96. driver.h: $(GRDRIVER) driver.ext bin2byte.exe
  97.     copy /b $(GRDRIVER)+driver.ext driver.tmp
  98.     bin2byte driver.tmp DRIVER_CODE driver.h
  99.     del driver.tmp
  100.  
  101. clean :
  102.     del *.obj
  103.     del *.map
  104.     del *.exe
  105.     del stubbyte.h
  106.     del driver.h
  107.  
  108. # DEPENDENCIES
  109.  
  110. coff2exe.obj : stubbyte.h
  111.  
  112. control.obj : gotypes.h gdt.h idt.h tss.h valloc.h utils.h graphics.h mono.h vcpi.h paging.h dpmi.h extdebug.h exphdlr.h dalloc.h mswitch.h xms.h npx.h stubinfo.h proginfo.h control.h
  113.  
  114. dalloc.obj : gotypes.h valloc.h dalloc.h mono.h control.h
  115.  
  116. driver.obj : driver.h
  117.  
  118. event.obj : eventque.h
  119.  
  120. exphdlr.obj : gotypes.h gdt.h idt.h tss.h utils.h paging.h npx.h mono.h vcpi.h graphics.h dpmi.h extdebug.h ustat.h dpmisim.h dalloc.h valloc.h control.h eventque.h
  121.  
  122. extdebug.obj : gotypes.h aout.h extdebug.h dpmi.h paging.h tss.h exphdlr.h mswitch.h utils.h gdt.h eventque.h
  123.  
  124. fixstub.obj : gotypes.h stubinfo.h
  125.  
  126. graphics.obj : gotypes.h paging.h graphics.h tss.h gdt.h grdriver.h
  127.  
  128. mono.obj : mono.h
  129.  
  130. paging.obj : gotypes.h paging.h graphics.h tss.h idt.h gdt.h valloc.h dalloc.h utils.h aout.h mono.h vcpi.h dpmi.h extdebug.h exphdlr.h stubinfo.h proginfo.h control.h
  131.  
  132. stub.obj : gotypes.h stubinfo.h
  133.  
  134. stubedit.obj : gotypes.h stubinfo.h
  135.  
  136. ustat.obj : ustat.h
  137.  
  138. valloc.obj : gotypes.h valloc.h xms.h mono.h vcpi.h utils.h paging.h stubinfo.h proginfo.h control.h mswitch.h
  139.  
  140. xms.obj : xms.h
  141.  
  142. utils.obj : gotypes.h tss.h gdt.h utils.h dpmi.h mswitch.h exphdlr.h
  143.  
  144. doutils.obj : segdefs.inc tss.inc gdt.inc idt.inc
  145.  
  146. dpmi.obj : segdefs.inc tss.inc
  147.  
  148. dpmisim.obj : segdefs.inc tss.inc gdt.inc idt.inc
  149.  
  150. grprot.obj : segdefs.inc tss.inc gdt.inc idt.inc
  151.  
  152. tables.obj : segdefs.inc tss.inc gdt.inc idt.inc
  153.  
  154. vcpi.obj : segdefs.inc vcpi.inc
  155.  
  156. vga.obj : segdefs.inc
  157.  
  158. mswitch.obj : segdefs.inc tss.inc gdt.inc idt.inc vcpi.inc
  159.  
  160. npx.obj : segdefs.inc tss.inc gdt.inc idt.inc
  161.